package com.zhoutao.blog.seven.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhoutao.blog.seven.dao.model.BookChapterDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookChapterMapper extends BaseMapper<BookChapterDao> {

    @Select("<script>SELECT DISTINCT(book_id) FROM book_chapter;</script>")
    List<Long> bookIds();
}
